﻿using System;
using System.Collections;
using System.Configuration;
using System.Data.SqlClient;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Collections.Generic;
using System.Text;

namespace webnew
{
    public partial class test : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            { 
               
              //设置邮件附件的上传路径
                string FilePathWithoutFileName = ConfigurationManager.AppSettings["MailUpload"];
              //设置邮件附件的上传类型
                string ValidFileType = ConfigurationManager.AppSettings["MailFileType"];
              //设置邮件附件大小的最大长度
              int MaxFileSize = Convert.ToInt32(ConfigurationManager.AppSettings["MailMaxFileSize"]);
              //显示上传控件
              Uc_FileUpload1.UcShow("Sys_company", "1", FilePathWithoutFileName, ValidFileType, MaxFileSize);
              //显示下载控件
              Uc_FileDownLoad1.UcShow("Sys_company", "1");  
            }
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            Uc_FileUpload1.SavaFileDate();
        }

       
    }
}
